﻿<#assign contextPath = request.contextPath />
<!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
<title>Administration</title>
<link rel="stylesheet" media="screen" href="${contextPath}/common/login/style.css">
<link href="${contextPath}/common/hui/static/h-ui/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="${contextPath}/common/hui/static/h-ui.admin/css/H-ui.login.css" rel="stylesheet" type="text/css" />
<link href="${contextPath}/common/hui/static/h-ui.admin/css/style.css" rel="stylesheet" type="text/css" />
<link href="${contextPath}/common/hui/lib/Hui-iconfont/1.0.8/iconfont.css" rel="stylesheet" type="text/css" />
<script>try{Typekit.load({ async: false });}catch(e){}</script>
<style>
  body {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.intro-container {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  text-align: center;
  margin: 0 auto;
  right: 0;
  left: 0;
  z-index: 999;
}

h1 {
  font-family: 'brandon-grotesque', sans-serif;
  font-weight: bold;
  margin-top: 0px;
  margin-bottom: 0;
  font-size: 20px;
}
@media screen and (min-width: 860px) {
  h1 {
    font-size: 40px;
    line-height: 52px;
  }
}

.fancy-text {
  font-family: "adobe-garamond-pro",sans-serif;
  font-style: italic;
  letter-spacing: 1px;
  margin-bottom: 17px;
}

.button {
  position: relative;
  cursor: pointer;
  display: inline-block;
  font-family: 'brandon-grotesque', sans-serif;
  text-transform: uppercase;
  min-width: 200px;
  margin-top: 30px;
}
.button:hover .border {
  box-shadow: 0px 0px 10px 0px white;
}
.button:hover .border .left-plane, .button:hover .border .right-plane {
  transform: translateX(0%);
}
.button:hover .text {
  color: #121212;
}
.button .border {
  border: 1px solid white;
  transform: skewX(-20deg);
  height: 32px;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  transition: .10s ease-out;
}
.button .border .left-plane, .button .border .right-plane {
  position: absolute;
  background: white;
  height: 32px;
  width: 100px;
  transition: .15s ease-out;
}
.button .border .left-plane {
  left: 0;
  transform: translateX(-100%);
}
.button .border .right-plane {
  right: 0;
  transform: translateX(100%);
}
.button .text {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: .15s ease-out;
}

.x-mark {
  right: 10px;
  top: 10px;
  position: absolute;
  cursor: pointer;
  opacity: 0;
}
.x-mark:hover .right {
  transform: rotate(-45deg) scaleY(1.2);
}
.x-mark:hover .left {
  transform: rotate(45deg) scaleY(1.2);
}
.x-mark .container {
  position: relative;
  width: 20px;
  height: 20px;
}
.x-mark .left, .x-mark .right {
  width: 2px;
  height: 20px;
  background: white;
  position: absolute;
  border-radius: 3px;
  transition: .15s ease-out;
  margin: 0 auto;
  left: 0;
  right: 0;
}
.x-mark .right {
  transform: rotate(-45deg);
}
.x-mark .left {
  transform: rotate(45deg);
}

.sky-container {
  position: absolute;
  color: white;
  text-transform: uppercase;
  margin: 0 auto;
  right: 0;
  left: 0;
  top: 2%;
  text-align: center;
  opacity: 0;
}
@media screen and (min-width: 860px) {
  .sky-container {
    top: 18%;
    right: 12%;
    left: auto;
  }
}
.sky-container__left, .sky-container__right {
  display: inline-block;
  vertical-align: top;
  font-weight: bold;
}
.sky-container__left h2, .sky-container__right h2 {
  font-family: 'brandon-grotesque', sans-serif;
  font-size: 26px;
  line-height: 26px;
  margin: 0;
}
@media screen and (min-width: 860px) {
  .sky-container__left h2, .sky-container__right h2 {
    font-size: 72px;
    line-height: 68px;
  }
}
.sky-container__left {
  margin-right: 5px;
}
.sky-container .thirty-one {
  letter-spacing: 4px;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.twitter:hover a {
  transform: rotate(-45deg) scale(1.05);
}
.twitter:hover i {
  color: #21c2ff;
}
.twitter a {
  bottom: -40px;
  right: -75px;
  transform: rotate(-45deg);
}
.twitter i {
  bottom: 7px;
  right: 7px;
  color: #00ACED;
}

.social-icon a {
  position: absolute;
  background: white;
  color: white;
  box-shadow: -1px -1px 20px 0px rgba(0, 0, 0, 0.3);
  display: inline-block;
  width: 150px;
  height: 80px;
  transform-origin: 50% 50%;
  transition: .15s ease-out;
}
.social-icon i {
  position: absolute;
  pointer-events: none;
  z-index: 1000;
  transition: .15s ease-out;
}

.youtube:hover a {
  transform: rotate(45deg) scale(1.05);
}
.youtube:hover i {
  color: #ec4c44;
}
.youtube a {
  bottom: -40px;
  left: -75px;
  transform: rotate(45deg);
}
.youtube i {
  bottom: 7px;
  left: 7px;
  color: #E62117;
}

.top-login span img {
    margin: 8px 1px 1px 0px;
}


</style>

<script src="${contextPath}/common/login/prefixfree.min.js"></script>

</head>

<body>
<div class="x-mark">
	<div class="container">
		<div class="left"></div>
		<div class="right"></div>
	</div>
</div>
<div class="intro-container">
	
	<h1 id="everyday">ONE WITH AN EVERLASTING DESIRE <br> FOR THE UNKNOWN & UNTOLD</h1>

	<div class="button shift-camera-button">
		<div class="border">
			<div class="left-plane"></div>
			<div class="right-plane"></div>
		</div>	
		<div class="text" id="dianji">点击进入</div>
	</div>
</div>
<div class="sky-container">
	<div class="login-form">
			<div class="top-login">
				<span><img src="${contextPath}/common/login/images/group.png" alt=""/></span>
			</div>
			<div class="login-top">
			<form  action="#" method="post" id="form">
				<div class="login-ic">
					<i style="background: url(${contextPath}/common/login/images/m.png)no-repeat 6px 6px;"></i>
					<input type="text"  name="userName"  value="" onFocus="this.value = '';" onBlur="if (this.value == '') {this.value = '';}"/>
					<div class="clear"> </div>
				</div>
				<div class="login-ic">
					<i class="icon" style="background: url(${contextPath}/common/login/images/l.png)no-repeat 6px 6px;  "></i>
					<input type="password" name="password"  value="" onFocus="this.value = '';" onBlur="if (this.value == '') {this.value = '';}"/>
					<div class="clear"> </div>
				</div>
			
				<div class="log-bwn">
					<input type="button"  onclick="login()"  value="Login" >
				</div>
				</form>
			</div>
	</div>		
</div>


<script src='${contextPath}/common/login/jquery.min.js'></script>
<script src="${contextPath}/common/login/jrj6out.js"></script>
<script src='${contextPath}/common/login/TweenMax.min.js'></script>
<script src='${contextPath}/common/login/three.min.js'></script>
<script src="${contextPath}/common/login/index.js"></script>
<script type="text/javascript" src="${contextPath}/common/hui/static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="${contextPath}/common/hui/lib/layer/2.4/layer.js"></script>
<#include "location.html">
<script type="text/javascript">

$("#dianji").click(function(){
	$(".intro-container").css('display','none');
});

$(".container").click(function(){
	$(".intro-container").css('display','block');
});


//监听Enter键自动提交事件  
$(document).keyup(function(event){  
  if(event.keyCode ==13){  
	  login();  
  }  
});  

$.ajax({
	type: 'POST',
	url: '${contextPath}/location/api.do',
	success: function(data){
		console.log(data);
		if(data!="error"){
			$("#everyday").text(data);
		}
	}
});	


function login(){
	$.ajax({
		type: 'POST',
		url: '${contextPath}/login/doLogin.do',
		data:$('#form').serialize(),
		dataType: 'json',
		success: function(data){
			if(data.code==200){
				if(window.parent){
					window.parent.location = '${contextPath}/index.do';
				}else
					window.location = '${contextPath}/index.do';
			}else{
				layer.alert(data.msg||"操作失败");
			}
		},
		error:function(data) {
			var str=data.responseText;
			var obj = JSON.parse(str);
			console.log(obj.msg||"操作失败");
			layer.alert(obj.msg||"操作失败");
		},
	});		
}

</script>
</body>
</html>
